home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Laurel With a Moral
/
Laurel With a Moral.iso
/
st1.inf
< prev
Wrap
INI File
|
1995-02-09
|
10KB
|
313 lines
DefineVariables
;; this window lists the variables used by the this install script
;; these are easy to define at any time and conmsist of 2 components:
;; type [variablestring]
Number [ReturnVal1]
Number [ReturnVal2]
Number [ReturnVal3]
Number [ErrCount]
Directory [WinDir]
Directory [WinsDir]
Logical [EnKeyb]
Logical [NetAvail]
Logical [MathPres]
Logical [CDAvail]
Number [XMSAvail]
Number [ExtmemPagesActive]
Number [ExtmemPagesAvail]
Number [ExtMemAvail]
Number [ExtMemPres]
Number [ExpMempgavail]
Number [ExpMempgactive]
Text [DispType]
Text [OSVer]
Text [DosVer]
Text [EmsVer]
Text [ProdExecutable]
Text [Configexe]
Text [GroupTitle]
Text [GroupFile]
Text [ExistingGroupName]
Text [InstDir]
Text [FactsIconF]
Text [IconTitle]
Text [IconFile]
Text [ConfigTitle]
Text [ConfigFile]
EndDefineVariables
Procedure SetupDisplay
SetBackGroundColor 0 0 255 0 0 255
SetDefaultBitMap Off
SetDithering On
ShowWindow Maximize ;;
LoadBitMap 1 [InstallFromDrive]:\LAURTEXT.BMP
;; ***Substitute source directory for ShadowDirectory argument if necessary***
;;LINE 53
ShowBitMap 1 @xy(10,15)
DialogBox CENTERSCREEN 258 180 Returns [Number1] BlackOnWhite UseHeader "Copyright Notice" SysMenu ;;
Font "MS Sans Serif" 8
StaticText @xy(24,10) 220 10 "The video, animations, artwork, music, dialogue, and interface"
StaticText @xy(24,21) 220 10 "of this product are all protected under national and international"
StaticText @xy(24,32) 220 10 "copyright laws and conventions. Any unauthorized reproduction,"
StaticText @xy(24,43) 220 10 "duplication, or distribution of this material is illegal and "
StaticText @xy(24,54) 220 10 "punishable under law."
StaticText @xy(24,76) 220 10 "Videos and certain story elements contained on this CD-ROM are "
StaticText @xy(24,87) 220 10 "Copyright 1987 Jane E. Dickerson and may not be reused or"
StaticText @xy(24,98) 220 10 "reproduced for any purpose, in any medium, without the "
StaticText @xy(24,109) 220 10 "express written permission of the copyright holder."
StaticText @xy(24,131) 220 10 " Copyright 1995 WeMake CDs, Inc. - all rights reserved"
DefPushButton @xy(40,150) 175 17 "I agree to honor the terms of this copyright." 100
EndDialogBox
EndProcedure
Procedure Install
;; install procedure handles the details of installing the program
:Top
DialogBox CENTERSCREEN 237 180 Returns [Number1] BlackOnWhite UseHeader "Notice!" SysMenu ;;
Font "MS Sans Serif" 8
StaticText @xy(8,10) 225 21 "For 'Laurel with a Moral' to run correctly, you must have the"
StaticText @xy(8,21) 225 20 "11/29/94, or later, version of Video for Windows Runtime installed"
StaticText @xy(8,32) 225 20 "on your system. To install the version included on the CD-ROM,"
StaticText @xy(8,43) 225 20 "press escape to exit this installation, then in Program Manager:"
StaticText @xy(8,65) 225 20 " 1. Click on 'File'"
StaticText @xy(8,76) 225 20 " 2. Click on 'Run'"
StaticText @xy(8,87) 225 20 " 3. In the dialogue box, type: D:\VFWSETUP\SETUP"
StaticText @xy(8,98) 225 20 " (In place of 'D:' put the drive letter of your CD-ROM player.)"
StaticText @xy(8,109) 225 20 " 4. Click on 'OK' and follow the prompts."
StaticText @xy(8,131) 225 20 "Once the updated runtime is installed, proceed with the installation"
StaticText @xy(8,142) 225 20 "of 'Laurel with a Moral' as before."
DefPushButton @xy(88,160) 58 15 "Continue" 100
EndDialogBox
DialogBox CENTERSCREEN 205 138 Returns [Number1] BlackOnWhite UseHeader "Choose Installation Type" SysMenu ;;C:\CHOOSE.DBB
Font "MS Sans Serif" 8
StaticText @xy(8,39) 205 20 "(These options require 3 meg available hard drive space"
StaticText @xy(8,50) 205 20 "and will speed access to the videos on the CD-ROM)"
StaticText @xy(8,98) 205 20 "(These options will run 'Laurel' directly from the CD.)"
DefPushButton @xy(80,115) 50 14 "OK" OK
RadioButtonGroup Uses [Number2]
RadioButton @xy(8,10) 189 14 "Install version for 486 and Pentiums onto hard drive"
RadioButton @xy(8,24) 193 10 "Install version for 386 onto hard drive"
RadioButton @xy(8,72) 188 10 "Install Program Manager Icon for 486/Pentium version"
RadioButton @xy(8,83) 210 10 "Install Program Manager Icon for 386 version"
EndDialogBox
;;LINE 111
If [Number2] = 1 ;; 486/Pentium HD install
;; programmer is setting default dir to install the files to
[installationdirectory] := Laurel
;; show default dialog box to let user choose drive to install to
DetermineInstallationDrive
;; show default dialog box to let user select directory
;; this dialog will default to the drive user just selected and the programmer defined
;; directory above
DetermineInstallationDirectory installationdrive:\[installationdirectory]
CopyFiles
laurely.exe
EndCopyFiles
CreateFile [WindowsDirectory]\laurel.ini
AppendFile [WindowsDirectory]\laurel.ini
[InstallFromDrive]
EndAppendFile
CopyFiles from [InstallFromDrive]:\SysFiles to [WindowsSystemDirectory]
*.*
EndCopyFiles
;; now goto the new directory
ChangeDirectoryto [InstallationDirectory]
;; set the icon data
[ProdExecutable] := [InstallationDirectory]\Laurely.exe
;;[ConfigEXE] := [InstallationDirectory]\config.exe ;;LINE 150
[GroupTitle] := Laurel
[InstDir] := [InstallationDirectory]
[IconFile] := Laurely.exe
[ConfigFile] := Laurely.exe
[IconTitle] :=Laurel with a Moral
[ConfigTitle] := Laurel
ProgramManagerDDE
CreateGroup (Laurel with a Moral)
AddItem([ProdExecutable],[IconTitle],[InstallationDirectory]\[IconFile])
;;AddItem([ConfigEXE],[ConfigTitle],[InstallationDirectory]\[ConfigFile])
EndProgramManagerDDE
Endif
If [Number2] = 2 ;; 386 HD install
;; programmer is setting default dir to install the files to
[installationdirectory] := Laurel
;; show default dialog box to let user choose drive to install to
DetermineInstallationDrive
;; show default dialog box to let user select directory
;; this dialog will default to the drive user just selected and the programmer defined
;; directory above
DetermineInstallationDirectory installationdrive:\[installationdirectory]
;;LINE 180
CopyFiles
laurelx.exe
EndCopyFiles
CreateFile [WindowsDirectory]\laurel.ini
AppendFile [WindowsDirectory]\laurel.ini
[InstallFromDrive]
EndAppendFile
;;LINE 179
CopyFiles from [InstallFromDrive]:\SysFiles to [WindowsSystemDirectory]
*.*
EndCopyFiles
;; now goto the new directory
ChangeDirectoryto [InstallationDirectory]
;; set the icon data LINE 150
[ProdExecutable] := [InstallationDirectory]\Laurelx.exe
;;[ConfigEXE] := [InstallationDirectory]\config.exe
[GroupTitle] := Laurel
[InstDir] := [InstallationDirectory]
[IconFile] := Laurelx.exe
[ConfigFile] := Laurelx.exe
[IconTitle] :=Laurel with a Moral
[ConfigTitle] := Laurel
ProgramManagerDDE
CreateGroup (Laurel with a Moral)
AddItem([ProdExecutable],[IconTitle],[InstallationDirectory]\[IconFile])
;;AddItem([ConfigEXE],[ConfigTitle],[InstallationDirectory]\[ConfigFile])
EndProgramManagerDDE
;;203
Endif
If [Number2] = 3 ;; 486/Pentium CD-ROM
;; programmer is setting default dir to install the files to
[installationdirectory] := [InstallFromDrive]
;; show default dialog box to let user choose drive to install to
;;DetermineInstallationDrive
;; show default dialog box to let user select directory
;; this dialog will default to the drive user just selected and the programmer defined
;; directory above
;;DetermineInstallationDirectory installationdrive:\[installationdirectory]
CreateFile [WindowsDirectory]\laurel.ini
AppendFile [WindowsDirectory]\laurel.ini
[InstallFromDrive]
EndAppendFile
CopyFiles from [InstallFromDrive]:\SysFiles to [WindowsSystemDirectory]
*.*
EndCopyFiles
;; now goto the new directory 230
ChangeDirectoryto [InstallFromDirectory]
;; set the icon data LINE 232
[ProdExecutable] := [InstallFromDrive]:\laurely.exe
;;[ConfigEXE] := [InstallFromDirectory]\config.exe
[GroupTitle] := Laurel
[InstDir] := [InstallFromDirectory]
[IconFile] := laurely.exe
[ConfigFile] := laurely.exe
[IconTitle] :=Laurel with a Moral
[ConfigTitle] := Laurel
ProgramManagerDDE
CreateGroup (Laurel with a Moral)
AddItem([ProdExecutable],[IconTitle], [InstallFromDirectory]\[IconFile])
;;AddItem([ConfigEXE],[ConfigTitle], [InstallFromDirectory]\[ConfigFile])
EndProgramManagerDDE
Endif
If [Number2] = 4 ;; 386 CD-ROM
;; programmer is setting default dir to install the files to
[installationdirectory] := [InstallFromDrive]
;; show default dialog box to let user choose drive to install to
;;DetermineInstallationDrive
;; show default dialog box to let user select directory
;; this dialog will default to the drive user just selected and the programmer defined
;; directory above
;;DetermineInstallationDirectory installationdrive:\[installationdirectory]
CreateFile [WindowsDirectory]\laurel.ini
AppendFile [WindowsDirectory]\laurel.ini
[InstallFromDrive]
EndAppendFile
CopyFiles from [InstallFromDrive]:\SysFiles to [WindowsSystemDirectory]
*.*
EndCopyFiles
;; now goto the new directory
ChangeDirectoryto [InstallFromDirectory]
;; set the icon data
;;LINE 290
[ProdExecutable] := [InstallFromDrive]:\laurelx.exe
;;[ConfigEXE] := [InstallFromDirectory]\config.exe
[GroupTitle] := Laurel
[InstDir] := [InstallFromDirectory]
[IconFile] := laurelx.exe
[ConfigFile] := laurelx.exe
[IconTitle] :=Laurel with a Moral
[ConfigTitle] := Laurel
ProgramManagerDDE
CreateGroup (Laurel with a Moral)
AddItem([ProdExecutable],[IconTitle], [InstallFromDirectory]\[IconFile])
;;AddItem([ConfigEXE],[ConfigTitle], [InstallFromDirectory]\[ConfigFile])
EndProgramManagerDDE
Endif
EndProcedure
Do SetupDisplay
Do Install
SoLong
endscript